package cn.stylefeng.guns.modular.ws.sso.action;

import cn.stylefeng.guns.sys.modular.system.entity.Dept;
import cn.stylefeng.roses.core.util.ToolUtil;

public class test2 {
    public static void main(String[] args) {

        String[] str = "/1000000000/150001/159999/150228".substring(1).split("/") ;
        String s = "" ;
        for(int i=0;i<str.length-1;i++){
            s += "[" + str[i] + "],";
        }
        System.out.println(s);

    }


    private void deptSetPids(Dept dept) {
        if (ToolUtil.isEmpty(dept.getPid()) || dept.getPid().equals(0L)) {
            dept.setPid(0L);
            dept.setPids("[0],");
        } else {
            Long pid = dept.getPid();
            Dept temp = null ;
            String pids = temp.getPids();
            dept.setPid(pid);
            dept.setPids(pids + "[" + pid + "],");
        }
    }
}
